<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title><%=$STORE_PREFS['store_name']%></title>
    <link rel="icon" href="/favicon.png" type="image/png"/>	
	<style media="all" type="text/css">
		@import "/stylesheets/store.css";
		@import "/stylesheets/mytheme.css";
	</style>
<!--[if lt IE 7]>
<script language="JavaScript">window.attachEvent("onload", correctPNG);</script>
<![endif]-->
	<script src="/javascripts/store.js" type="text/javascript"></script>
	<% if is_live() && $STORE_PREFS['google_analytics_account'] != "" -%>
	<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
	<script type="text/javascript">
		_uacct = "<%=$STORE_PREFS['google_analytics_account']%>";
		urchinTracker();
	</script>
	<% end -%>
	<% if is_live() && $STORE_PREFS['include_mint'] == true -%>
	<script src="/mint/?js" type="text/javascript"></script>
	<% end -%>
</head>
<body>
	<div id="page" class="narrow">
		<div id="page_top">
			<% if $STORE_PREFS['company_logo_path'] != "" -%>
			<div id="logo"><a href="<%=$STORE_PREFS['company_url']%>">
				<img src="<%=$STORE_PREFS['company_logo_path']%>" alt="<%=$STORE_PREFS['company_name']%>"/></a>
			</div>
			<% end -%>
			<h1><%=$STORE_PREFS['store_name']%></h1>
			<div class="tm"></div><img class="tr" src="/images/store/rounded_tr.png" alt="rounded border"/>
		</div>

		<div id="page_content" class="narrow">
			<div class="ccolumn narrow solo">
			<%= @content_for_layout %>
			</div>
			<div class="clear">&nbsp;</div>
		</div>

		<div id="footer">
			<div id="copyright"><p><%=$STORE_PREFS['copyright_html']%> Powered by <a href="http://www.potionfactory.com/potionstore">Potion Store</a></p></div>
		</div>
	</div>
</body>
</html>
